package com.southern.gateway.feign.sysApi;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.southern.gateway.base.ResultModel;
import com.southern.gateway.config.FeignConfig;

@FeignClient(value = "sysApi", url = "${feignApi.sysApi}", configuration = FeignConfig.class)
public interface SysApiUser {
	@RequestMapping(value = "/user/search", method = RequestMethod.GET)
	ResultModel getUserList( @RequestParam(value = "username", required = false) String username,
            @RequestParam(value = "nickname", required = false) String nickname,
            @RequestParam(value = "department", required = false) String department,
            @RequestParam(value = "page_num", required = false, defaultValue = "1") int pageNum,
            @RequestParam(value = "page_size", required = false, defaultValue = "10") int pageSize);
}
